package com.mszlu.blog.common;

import com.mszlu.blog.entity.SysUser;

public class SysUserThreadLocal {

    private SysUserThreadLocal(){}

    private static final ThreadLocal<SysUser> LOCAL = new ThreadLocal<>();

    public static void put(SysUser user){
        LOCAL.set(user);
    }

    public static SysUser get(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }

}
